<?php
class DefaultController extends Controller {
	public function actionIndex() {
		$new_dimension = new Dimension;
		$new_dimension->name = 'Root 1';
		$new_dimension->tree_save();
		$new_child = new Dimension;
		$new_child->name = 'Child 1';
		$new_child->parent = $new_dimension->id;
		var_dump($new_dimension->id);
		$r = $new_child->tree_save();
		var_dump($r->id);
		die;
	}
}